//
//  FourViewController.m
//  UI07作业
//
//  Created by dllo on 16/7/25.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "FourViewController.h"
#import "ViewController.h"
@interface FourViewController ()

@end

@implementation FourViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    UILabel *label = [[UILabel alloc] init];
    label.frame = CGRectMake(150, 80, 250, 40);
    label.textColor = [UIColor blackColor];
    label.font = [UIFont systemFontOfSize:25];
    //    label.backgroundColor = [UIColor redColor];
    label.text = @"验证邮箱";
    
    
    
    
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(20, 20, 50, 40);
    //    button.backgroundColor = [UIColor orangeColor];
    [self.view addSubview:button];
    [self.view addSubview:label];
    [button setTitle:@"返回" forState:UIControlStateNormal];
    [button setTitleColor:[UIColor greenColor] forState:UIControlStateNormal];
    [button addTarget:self action:@selector(buttonClicked) forControlEvents:UIControlEventTouchUpInside];
    
    
    UIButton *button2 = [UIButton buttonWithType:UIButtonTypeCustom];
    button2.frame = CGRectMake(40, 370, 300, 40);
    button2.backgroundColor = [UIColor greenColor];
    [button2 setTitleColor:[UIColor greenColor] forState:UIControlStateNormal];
    [button2 setTitle:@"验证邮箱" forState:UIControlStateNormal];
    [button2 setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [self.view addSubview:button2];
    
    
    UILabel *label1 = [[UILabel alloc] init];
    label1.frame = CGRectMake(40, 110, 300, 40);
    label1.text = @"请填写注册邮箱，收取密码重置邮件";
    label1.textColor = [UIColor blackColor];
    [self.view addSubview:label1];
    
    UITextField *field = [[UITextField alloc] init];
    //    field.backgroundColor = [UIColor redColor];
    field.frame = CGRectMake(40, 280, 300, 40);
    field.text = @"请输入邮箱";
    field.textColor = [UIColor blackColor];
    field.alpha = 0.7;
    [self.view addSubview:field];
}

- (void)buttonClicked
{
    ViewController *viewController = [[ViewController alloc] init];
    viewController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
    [self presentViewController:viewController animated:YES completion:nil];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
